package com.cqjtu.store.swiper.service;



import com.cqjtu.store.common.R;
import com.cqjtu.store.swiper.pojo.dto.BaseRequest;
import com.cqjtu.store.swiper.pojo.dto.SwiperDTO;
import com.cqjtu.store.swiper.pojo.vo.SwiperVO;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

public interface SwiperService {


    R<String> upload(MultipartFile avatar);

    void save(SwiperDTO swiperDTO);

    void download(String flag, String play, HttpServletResponse response);

    PageInfo<SwiperVO> page(BaseRequest pageRequest);

    SwiperVO getById(Integer id);

    void update(SwiperDTO swiperDTO);

    void delete(Integer id);

    List<SwiperVO> getList() throws IOException;

    Integer getSwiperNum() throws IOException;

    void modifySwiperNum(int num) throws IOException;
}
